<template>
  <div>
    <div class="sticky top-0 left-0">
      <Header></Header>
    </div>
    <div style="min-height:calc(100vh - 70px)">
      <Sidebar v-if="route.path !== '/index'"></Sidebar>
      <router-view class="mainContent" />
    </div>
  </div>
</template>

<script setup>
import Header from '@/components/Header.vue';
import Sidebar from '@/components/Sidebar.vue';
import { onMounted } from 'vue';
import { useRoute } from 'vue-router';
const route=useRoute()

</script>

<style lang="scss" scoped>
.mainContent{
  margin-left: 202px;
}
</style>